import request from "@/utils/request";

// 获取学生列表
export const getAllStudents = (data = {}) => {
    return request.get("/specialStudent/specialStudentList", { params: data })
}

//获取学生成绩
export const getAllGrade = (data = {}) => {
    return request.get("/specialStudent/gradeStatistics", { params: data })
}

//获取访谈记录
export const getAllRecord = (data = {}) => {
    return request.get("/specialStudent/interviewRecord", { params: data })
}

//更新编辑学生信息
export const updateStudent = (data) => {
    return request.put("/specialStudent/updateSpecialStudent", data)
}

//编辑学生成绩
export const updateGrade = (data) => {
    return request.post("/specialStudent/updateGradeStatistics", data)
}

//批量导入学生
//导入用户
export const uploadStudent = (data) => {
    return request.post("/specialStudent/interviewRecordByExcel", data, {
        headers: {
            'Content-Type': 'multipart/form-data',
        },
    }
    )
}

//导入访谈记录
export const uploadRecord = (data) => {
    return request.post("/specialStudent/studentByExcel", data, {
        headers: {
            'Content-Type': 'multipart/form-data',
        },
    }
    )
}

//获取卡片数据
export const getAllEchart1 = () => {
    return request.get("/specialStudent/echart1")
}

//获取饼状图数据
export const getAllEchart2 = () => {
    return request.get("/specialStudent/echart2")
}

//获取折线图数据
export const getAllEchart3 = () => {
    return request.get("/specialStudent/echart3")
}


